package org.lc.service.system.client.feign;


import org.lc.platform.base.result.Result;
import org.lc.service.system.client.error.FeignErrorDecoder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "lc-system", contextId = "UserClient", configuration = FeignErrorDecoder.class)
public interface IUserFeign {
    /**
     * 通过账号查询用户
     */
    @GetMapping("/feign/user/query/by/account")
    Result<Object> queryUserByAccount(@RequestParam("account") String account);

    /**
     * 通过ID设置登录状态
     */
    @GetMapping("/feign/user/online/by/userId")
    Result<Object> setOnlineByUserId(@RequestParam("userId") String userId, @RequestParam("online") boolean online);
}
